package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_circle;

import cn.com.api.mapper.ApiU_circleMapper;

import cn.com.api.service.ApiU_circleService;

/**
 * 
 **/
@Service
public class U_circleServiceImplBase {
	@Autowired
	private ApiU_circleMapper apiU_circleMapper;
    
    // 根据id获取
	public ApiU_circle findU_circleById(Integer id){
		ApiU_circle u_circle = apiU_circleMapper.findU_circleById( id );
		return u_circle;
	}
    
    //查看数据集
	public List<ApiU_circle> findU_circles(){
        List<ApiU_circle> u_circles = apiU_circleMapper.findU_circles();
		return u_circles;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_circlesByMap(HashMap condition){
        List<Map<String, Object>> u_circles = apiU_circleMapper.findU_circlesByMap(condition);
		return u_circles;
    }
    
	// 添加
	public int insertU_circle(ApiU_circle u_circle){
		int ret_I= apiU_circleMapper.insertU_circle(u_circle);
		return ret_I;
	}

	// 修改
	public int updateU_circle(ApiU_circle u_circle){
		int ret_I= apiU_circleMapper.updateU_circle(u_circle);
		return ret_I;
	}
	
    // 删除
	public int deleteU_circle(Integer id){
		int ret_I= apiU_circleMapper.deleteU_circle( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


